package com.xiaozhen.app.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaozhen.common.core.domain.app.OauthClientDetails;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/9/24 16:09
 * @description:
 */
public interface SysAuthService {
    /**
     * 查询客户端列表
     * @param page
     * @return
     */
    Page<OauthClientDetails> selectClientList(Page<OauthClientDetails> page);

    /**
     * 检查客户端是否存在
     * @param sysAuth
     * @return
     */
    Boolean checkClientIdUnique(OauthClientDetails sysAuth);

    /**
     * 添加
     * @param sysAuth
     * @return
     */
    Integer insertSysAuth(OauthClientDetails sysAuth);

    /**
     * 修改
     * @param sysAuth
     * @return
     */
    Integer updateSysAuth(OauthClientDetails sysAuth);

    /**
     * 删除
     * @param clientIds
     * @return
     */
    Integer deleteSysAuthByIds(Long[] clientIds);
}
